import { createApp } from "vue";
import router from "@/router";
import { setupStore } from "@/store";
import App from "./App.vue";
import i18n from "@/lang/index";
import * as globalMethods from "@/utils/global-methods";
import "virtual:svg-icons-register";
import "@/permission";
import "@/styles/index.scss";
import "uno.css";
import "virtual:uno.css";
import "element-plus/theme-chalk/dark/css-vars.css";

const app = createApp(App);
app.config.globalProperties.TTUL = globalMethods.TTUL;
app.config.globalProperties.getRowClass = globalMethods.getRowClass;
app.config.globalProperties.onTargetPage = globalMethods.onTargetPage;

setupStore(app);
app.use(router).use(i18n).mount("#app");
